////////////////////////////////////////////////////////////
// Workfile : Wall.cpp
// Author : Andreas Lehner
// Date : 29.10.2012
// Description : class Wall holds information about the 
// wall color (string in hex-code)
// it is able to print a wall and has no neighbours ->
// setNeighbour()-function is implemented empty
// can be cloned for room copies	IMLPLEMENTATION
// Remarks : 0
// Revision : 1
////////////////////////////////////////////////////////////
#include "Wall.h"

//print one element of a wall
void Wall::Print(size_t pos) const{
	if (pos < Side::getLength()){
		std::cout << "*";
	}
}
//walls have no neighbours
bool Wall::hasNeighbour() const{
	return false;
}
//set the color of a wall in hex code (string)
void Wall::setColor(std::string color){
	mColor = color;
}
//return a string with the color hex code of a wall
std::string Wall::getColor() const{
	return mColor;
}
//clone a wall for copying a room
Side* Wall::clone() const{
	return new Wall(getLength());
}